package com.bw.gmallapi.service.impl;

import com.bw.gmallapi.entity.ProvinceBean;
import com.bw.gmallapi.mapper.ProductMapper;
import com.bw.gmallapi.mapper.ProvinceMapper;
import com.bw.gmallapi.service.ProductService;
import org.springframework.beans.factory.annotation.Autowired;
import org.springframework.stereotype.Service;
import java.math.BigDecimal;
import java.util.List;
import java.util.Map;

@Service
public class ProductServiceImpl implements ProductService {
    @Autowired
    private ProductMapper productMapper;
    @Autowired
    private ProvinceMapper provinceMapper;

    @Override
    public BigDecimal getGmv(Integer date) {
        return productMapper.selectAllGmv(date);
    }

    @Override
    public List<ProvinceBean> getProGmv(Integer date) {
        return provinceMapper.selectProGmv(date);
    }


}
